<template>
  <div class="discover">
    
    <div class="nav">
      <router-link to="/discover/tuijian">推荐</router-link>
      <router-link to="/discover/toplist">排行榜</router-link>
      <router-link to="/discover/gedan">歌单</router-link>
    </div>
    
    <!-- 在一级路由里写的路由出口，就是给子路由用的出口，也就是2级路由出口 -->
    <router-view />
  </div>
</template>

<script>
export default {}
</script>

<style scoped>
.nav {
  height: 30px;
  background-color: #f00;
}

.nav a {
  color: #fff;
  line-height: 30px;
}

.nav a.router-link-active {
  color: #0094ff;
}
</style>
